package study.函数式接口.function函数式接口;

import study.User;
import study.Utils;

import java.util.List;
import java.util.function.Function;

/**
 * @Author 金贵权
 * @Date 2023/6/16 12:00
 **/
public class Demo01 {
    public static void main(String[] args) {
        Function<List<User>,Integer> function = user->user.get(1).getId();
        System.out.println(function.apply(Utils.getUserList()));
    }
}
